
import request from '@/utils/request'

export default {
  getPageList(page, limit, searchObj) {
    return request({
      url: `/eduservice/coursefront/getFrontCourseList/${page}/${limit}`,
      method: 'post',
      data: searchObj
    })
  },
  // 获取课程二级分类
  getNestedTreeList2() {
    return request({
      url: `/eduservice/edusubject`,
      method: 'get'
    })
  },
  getById(courseId, token) {
    return request({
      url: `/eduservice/coursefront/getFrontCourseInfo/${courseId}?token=${token}`,
      method: 'get'
    })
  },
  // getCourseInforById(courseId) {
  //   return request({
  //     url: `/eduorder/order/createOrder/${courseId}`,
  //     method: 'post',
  //     data: ''
  //   })
  // },

  getVideoById(id) {
    return request({
      url: `/eduservice/video/${id}`,
      method: 'get'
    })
  }
}